<!--search st-->
<div class="mall-head-box sy">
	<div class="mall-head area">
		<div class="mall-logos">
			<a href="http://<{php}>echo Site::domain('member');<{/php}>/" style="font-size: 24px; color:blue;" title="搜狐焦点装修网">搜狐焦点装修网</a>
		</div>
		
		<{php}>
		if (!empty($this->_tpl_vars['kword']))
			$kword = $this->_tpl_vars['kword'];
		else
			$kword = null;
			
		if (!empty($this->_tpl_vars['search_type']))
			$search_type = $this->_tpl_vars['search_type'];
		else
			$search_type = 'goods';
			
		if (!empty($this->_tpl_vars['statis']) && is_array($this->_tpl_vars['statis']))
		{
			if (isset($this->_tpl_vars['statis']['shop_id']))
			{
				$shop_id = $this->_tpl_vars['statis']['shop_id'];
				$search_type = 'shop_goods_list';
			}
			
			if (isset($this->_tpl_vars['search']) && is_array($this->_tpl_vars['search']))
			{
				if(isset($this->_tpl_vars['search']['title']) && !empty($this->_tpl_vars['search']['title']))
					$kword = $this->_tpl_vars['search']['title'];
			}
		}
		else
		{
			$shop_id = 0;
		}
		
		$content = Request::factory("/widget/searchword/".$search_type."/".$shop_id."?kword=".$kword)->execute()->body();
		
		echo $content;
		<{/php}>
	</div>
</div>
<!--search end-->

